Optimal. Leaf size=25 \[ \frac {a x^{1+m}}{1+m}+\frac {b x^{8+m}}{8+m} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {14}
\begin {gather*} \frac {a x^{m+1}}{m+1}+\frac {b x^{m+8}}{m+8} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rubi steps
\begin {align*} \int x^m \left (a+b x^7\right ) \, dx &=\int \left (a x^m+b x^{7+m}\right ) \, dx\\ &=\frac {a x^{1+m}}{1+m}+\frac {b x^{8+m}}{8+m}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 25, normalized size = 1.00 \begin {gather*} \frac {a x^{1+m}}{1+m}+\frac {b x^{8+m}}{8+m} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.03, size = 30, normalized size = 1.20
method | result | size |
norman | \(\frac {a x \,{\mathrm e}^{m \ln \left (x \right )}}{1+m}+\frac {b \,x^{8} {\mathrm e}^{m \ln \left (x \right )}}{8+m}\) | \(30\) |
risch | \(\frac {x \left (b m \,x^{7}+b \,x^{7}+a m +8 a \right ) x^{m}}{\left (8+m \right ) \left (1+m \right )}\) | \(34\) |
gosper | \(\frac {x^{1+m} \left (b m \,x^{7}+b \,x^{7}+a m +8 a \right )}{\left (8+m \right ) \left (1+m \right )}\) | \(35\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 25, normalized size = 1.00 \begin {gather*} \frac {b x^{m + 8}}{m + 8} + \frac {a x^{m + 1}}{m + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 33, normalized size = 1.32 \begin {gather*} \frac {{\left ({\left (b m + b\right )} x^{8} + {\left (a m + 8 \, a\right )} x\right )} x^{m}}{m^{2} + 9 \, m + 8} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 94 vs.
\(2 (19) = 38\).
time = 0.32, size = 94, normalized size = 3.76 \begin {gather*} \begin {cases} - \frac {a}{7 x^{7}} + b \log {\left (x \right )} & \text {for}\: m = -8 \\a \log {\left (x \right )} + \frac {b x^{7}}{7} & \text {for}\: m = -1 \\\frac {a m x x^{m}}{m^{2} + 9 m + 8} + \frac {8 a x x^{m}}{m^{2} + 9 m + 8} + \frac {b m x^{8} x^{m}}{m^{2} + 9 m + 8} + \frac {b x^{8} x^{m}}{m^{2} + 9 m + 8} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.60, size = 43, normalized size = 1.72 \begin {gather*} \frac {b m x^{8} x^{m} + b x^{8} x^{m} + a m x x^{m} + 8 \, a x x^{m}}{m^{2} + 9 \, m + 8} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.32, size = 34, normalized size = 1.36 \begin {gather*} \frac {x^{m+1}\,\left (8\,a+a\,m+b\,x^7+b\,m\,x^7\right )}{m^2+9\,m+8} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________